import toml


def load_config_from_file(file_path):
    """解析toml格式的配置文件
    Args:
        file_path: 文件路径
    """
    with open(file_path, mode='rb') as f:
        content = f.read()
    config_dict = toml.loads(content.decode('utf-8'))
    return config_dict
